package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Question;
import cn.wolfcode.luowowo.article.query.QuestionQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Question record);

    Question selectByPrimaryKey(Long id);

    List<Question> selectAll();

    int updateByPrimaryKey(Question record);

    List<Question> selectForList(QuestionQuery qo);

    void deleteRelation(Long id);

    void insertRelation(@Param("qId") Long qId, @Param("tagId") Long tagId);

}